package com.mdc.mansion.dataaccess.modules.system.dao;
import com.mdc.mansion.dataaccess.common.persistence.CrudDao;
import com.mdc.mansion.dataaccess.common.persistence.annotation.MyBatisDao;
import com.mdc.mansion.dataaccess.modules.system.entity.Role;

/**
 * cms角色dao接口
 * @author chenmingdong
 * @version 2016-03-03
 */
@MyBatisDao
public interface RoleDao extends CrudDao<Role> {
	
	 Role getByName(Role role);
	
	 Role getByEnname(Role role);

	/**
	 * 维护角色与菜单权限关系
	 * @param role
	 * @return
	 */
	 int deleteRoleMenu(Role role);

	 int insertRoleMenu(Role role);
}
